/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/**
 * \file
 * \brief About dialog implementation
 * \author Antti Maula <antti.maula@tkk.fi>
 * \author wxFormBuilder (Autogenerated base)
 *
 * $Id: MaCI_AlarmAboutDialog.cpp,v 1.2 2009-05-13 07:18:13 amaula Exp $
 *
 */

#include "MaCI_AlarmAboutDialog.h"
#include <unistd.h>

//*****************************************************************************
//*****************************************************************************
//*****************************************************************************

MaCI_AlarmAboutDialog::MaCI_AlarmAboutDialog( wxWindow* parent )
  : AboutDialog( parent )
{

}
//*****************************************************************************

MaCI_AlarmAboutDialog::MaCI_AlarmAboutDialog( wxWindow* parent, 
                                              const std::string &aVersionString,
                                              const unsigned int aBuildNumber)
  : AboutDialog( parent )
  
{
  versionLabelStaticText->SetLabel(wxString(wxT("Version ")) + aVersionString);
  buildLabelStaticText->SetLabel(wxString(wxT("Build ") + wxString::Format("%u",aBuildNumber)));

  wxString compiledText;
  char hname[1024];
  if (gethostname(hname, sizeof(hname)) == 0) {
    compiledText = wxString(wxT(__DATE__)) + wxString(wxT(" @ ")) + wxString(hname);
  } else {
    compiledText = wxT(__DATE__);
  }
  
  compiledStaticText->SetLabel(compiledText);      
}
//*****************************************************************************
//*****************************************************************************
//*****************************************************************************
